﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace NextGenSystems.WHMCS
{
    [DataContract()]
   public class OpenTicketRS : WHMCSBASE
    {
        #region Attributes

        private int _TotalResults;
        private int _StartNumber;
        private int _NumReturned;
        private List<OpenTicket> _OpenTicket;

        #endregion

        #region Properties

        [DataMember()]
        public List<OpenTicket> OpenTicket
        {
            get { return _OpenTicket; }
            set
            {
                if (_OpenTicket != value)
                {
                    _OpenTicket = value;
                }
            }
        }

        [DataMember()]
        public virtual int TotalResults
        {
            get { return _TotalResults; }
            set
            {
                if (_TotalResults != value)
                {
                    _TotalResults = value;
                    NotifyPropertyChanged("TotalResults");
                }
            }
        }

        [DataMember()]
        public virtual int StartNumber
        {
            get { return _StartNumber; }
            set
            {
                if (_StartNumber != value)
                {
                    _StartNumber = value;
                    NotifyPropertyChanged("StartNumber");
                }
            }
        }

        [DataMember()]
        public virtual int NumReturned
        {
            get { return _NumReturned; }
            set
            {
                if (_NumReturned != value)
                {
                    _NumReturned = value;
                    NotifyPropertyChanged("NumReturned");
                }
            }
        }

        #endregion
    }

    public class OpenTicket
    {
       
        #region Attributes

        private Int64 _Clientid;
        private Int64 _Deptid;
        private String _Subject;
        private String _Message;
        private String _Priority;

        #endregion

        #region Properties

        [DataMember()]
        public Int64 Clientid
        {
            get { return _Clientid; }
            set { _Clientid = value; }
        }

        [DataMember()]
        public Int64 Deptid
        {
            get { return _Deptid; }
            set { _Deptid = value; }
        }
       
        [DataMember()]
        public String Subject
        {
            get { return _Subject; }
            set { _Subject = value; }
        }
       
        [DataMember()]
        public String Message
        {
            get { return _Message; }
            set { _Message = value; }
        }

        [DataMember()]
        public String Priority
        {
            get { return _Priority; }
            set { _Priority = value; }
        }

        #endregion

    }
}